package com.lzy.principles.demo2.after;

import lombok.Setter;

/**
 * @ClassName: Square
 * @Description: 正方形
 * @Author: LiuZy
 * @Date: 2022/4/4 11:48
 * @Version: 1.0
 */
@Setter
public class Square implements Quadrilateral{

    private double side;

    @Override
    public double getLength() {
        return this.side;
    }

    @Override
    public double getWidth() {
        return this.side;
    }
}